package com.heima.feign.client;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.schedule.dtos.Task;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-schedule")
public interface TaskClient {

    @PostMapping("/task/auto")
    ResponseResult autoTask(@RequestBody Task task);
}
